package cn.edu.cqut.ex2;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class User {
    public static void main(String[] args) {
        Verture car1,car2;
        car1=new Verture();
        car2=new Verture();
        car1.setPower(128);
        car2.setPower(76);
        car1.speedUp(80);
        car2.speedUp(80);
        System.out.println("car1目前的速度"+car1.getSpeed());
        System.out.println("car2目前的速度"+car2.getSpeed());
        car1.speedDown(10);
        car2.speedDown(20);
        System.out.println("car1目前的速度"+car1.getSpeed());
        System.out.println("car2目前的速度"+car2.getSpeed());





    }
}
